#ifndef POINT_HPP
#define POINT_HPP
#include <iostream>
#include <cmath>

class Point
{
public:
    double x, y;
    Point(double x = 0, double y = 0);
    ~Point();
    double distance(const Point &p);

    // 重载++和--运算符
    Point &operator++();
    Point &operator--();
    Point operator++(int n);
    Point operator--(int n);

    // 重载<<和>>运算符
    friend std::istream &operator>>(std::istream &in, Point &p);
    friend std::ostream &operator<<(std::ostream &out, const Point &p);
};

#endif